package sixth.group.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Dishes {
    private Integer did;

    private String dname;

    private Integer drid;

    private Integer dvalue;

    private String dintroduction;

    private Date duptime;
    private List<Orderinf> orderinfs=new ArrayList<>();

    public List<Orderinf> getOrderinfs() {
        return orderinfs;
    }

    public void setOrderinfs(List<Orderinf> orderinfs) {
        this.orderinfs = orderinfs;
    }

    @Override
    public String toString() {
        return "Dishes{" +
                "did=" + did +
                ", dname='" + dname + '\'' +
                ", drid=" + drid +
                ", dvalue=" + dvalue +
                ", dintroduction='" + dintroduction + '\'' +
                ", duptime=" + duptime +
                ", orderinfs=" + orderinfs +
                '}';
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Integer getDrid() {
        return drid;
    }

    public void setDrid(Integer drid) {
        this.drid = drid;
    }

    public Integer getDvalue() {
        return dvalue;
    }

    public void setDvalue(Integer dvalue) {
        this.dvalue = dvalue;
    }

    public String getDintroduction() {
        return dintroduction;
    }

    public void setDintroduction(String dintroduction) {
        this.dintroduction = dintroduction;
    }

    public Date getDuptime() {
        return duptime;
    }

    public void setDuptime(Date duptime) {
        this.duptime = duptime;
    }

    //构造方法
    public Dishes(String dname, Integer drid, Integer dvalue) {
        this.dname = dname;
        this.drid = drid;
        this.dvalue = dvalue;
    }

    public Dishes() {
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}